<%@page contentType="text/html;charset=UTF-8" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<%@page import="java.text.NumberFormat" %>
<%@page import="be.destin.skos.core.SkosManager" %>
<%@page import="be.destin.skos.html.SkosHtmlManager" %>
<%@page import="be.destin.harvesting.UsageCrawlerController" %>
<%@page import="be.destin.harvesting.simpler.UsageHarvester" %>
<%@page import="be.destin.skos.html.LocalError" %>
<%@page import="be.destin.skos.core.SchemeInterface" %>
<%@page import="be.destin.skos.core.SchemeUsage" %>
<%@page import="be.destin.skos.core.SchemeUsageList" %>
<%@page import="be.destin.skos.core.ConceptScheme" %>
<%@page import="be.destin.skos.core.Term" %>
<%@page import="java.util.Map" %>
<%@page import="java.util.Map.Entry" %>
<%@page import="java.util.LinkedList" %>
<%@page import="java.util.TreeMap" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<%	 
   SkosHtmlManager skosHtmlManager = SkosHtmlManager.getAskosiSessionInstance(request);
   SkosManager skosManager = skosHtmlManager.getSkosManager();
   String language = skosHtmlManager.getLanguage();
   String applic = request.getParameter("application");
   SchemeUsageList usageList = skosHtmlManager.getSkosManager().getHarvestedUsage(applic);
%>
<title>HARVEST <%=applic%></title>
<link rel="shortcut icon" href="image/tulipevertepetite.png" >
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jqueryui.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/askosi.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/ajaxtags.css" />
	<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="js/sessvars.js"></script>
    <script type="text/javascript" src="js/tablescroll.js"></script>
    <script type="text/javascript">
		sessvars.contextPath = "<%= request.getContextPath() %>";
		headerHeight=100;
		footerHeight=50;
	</script>
</head>
<body class="contentpage">
<H1>Harvesting <%=applic%>...</H1>
<ul>
<%
for (SchemeUsage anUsage: usageList) {
	%><li>
	(<%=anUsage.hashCode()%>) <%=anUsage.getApplication()%>:<%=anUsage.getRole()%> : Condition=<%=anUsage.getHarvestCondition()%>, URL=<%=anUsage.getHarvestURL()%>, Failure pattern=<%=anUsage.getHarvestFailure()%>, Count extractor=<%=anUsage.getHarvestCount()%>
	</li><%
}
%>
</ul>
<%out.flush();%>
<%--
   UsageCrawlerController concon = new UsageCrawlerController(skosHtmlManager, applic);
--%>
<%
   UsageHarvester concon = new UsageHarvester(skosHtmlManager, applic);
%>
<%=concon.toString()%>
</body></html>